package com.client;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;

/**
 * This is a dialog style activity which should be specified in the AndroidManifest.xml
 * android:theme="@android:style/Theme.Dialog"
 * 
 * @author jiafanz
 *
 */
public class AboutDialogActivity extends Activity
{
    
    /**
     * {@inheritDoc}
     */
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
    }

    /**
     * This event tells to destroy the about dialog event when touched.
     */
    @Override
    public boolean onTouchEvent(MotionEvent event)
    {
        finish();
        return super.onTouchEvent(event);
    }
}
